package com.cmdi.feign;

import com.cmdi.constant.ServiceNameConstants;
import com.cmdi.domain.R;
import com.cmdi.domain.SysUserLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @Description: java类作用描述
 * @Author: gaozb
 * @Date: 2021/9/9$ 16:26$
 * @Version: 1.0
 */
@FeignClient(value = ServiceNameConstants.ADMIN_SERVICE_NAME)
public interface RemoteLogServiceFeignClient {

    @PostMapping("/log/save")
    ResponseEntity<R> saveLog(@RequestBody SysUserLog sysUserLog, @RequestHeader(HttpHeaders.AUTHORIZATION) String token);

    //@GetMapping("/log/get")
    //ResponseEntity<String> getLog(@RequestHeader(HttpHeaders.AUTHORIZATION) String auth);
}